[X Y Z] = sphere;
mesh(x,y,z)
axis equal;
t=convhulln(XYZ);%get triangles
trisurf(t,XYZ(:,1),XYZ(:,2),XYZ(:,3));%plot the surface
